package cn.kgc.ubagnet.pojo;

import java.util.ArrayList;
import java.util.List;

public class OrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andClothesidIsNull() {
            addCriterion("clothesid is null");
            return (Criteria) this;
        }

        public Criteria andClothesidIsNotNull() {
            addCriterion("clothesid is not null");
            return (Criteria) this;
        }

        public Criteria andClothesidEqualTo(Integer value) {
            addCriterion("clothesid =", value, "clothesid");
            return (Criteria) this;
        }

        public Criteria andClothesidNotEqualTo(Integer value) {
            addCriterion("clothesid <>", value, "clothesid");
            return (Criteria) this;
        }

        public Criteria andClothesidGreaterThan(Integer value) {
            addCriterion("clothesid >", value, "clothesid");
            return (Criteria) this;
        }

        public Criteria andClothesidGreaterThanOrEqualTo(Integer value) {
            addCriterion("clothesid >=", value, "clothesid");
            return (Criteria) this;
        }

        public Criteria andClothesidLessThan(Integer value) {
            addCriterion("clothesid <", value, "clothesid");
            return (Criteria) this;
        }

        public Criteria andClothesidLessThanOrEqualTo(Integer value) {
            addCriterion("clothesid <=", value, "clothesid");
            return (Criteria) this;
        }

        public Criteria andClothesidIn(List<Integer> values) {
            addCriterion("clothesid in", values, "clothesid");
            return (Criteria) this;
        }

        public Criteria andClothesidNotIn(List<Integer> values) {
            addCriterion("clothesid not in", values, "clothesid");
            return (Criteria) this;
        }

        public Criteria andClothesidBetween(Integer value1, Integer value2) {
            addCriterion("clothesid between", value1, value2, "clothesid");
            return (Criteria) this;
        }

        public Criteria andClothesidNotBetween(Integer value1, Integer value2) {
            addCriterion("clothesid not between", value1, value2, "clothesid");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsidIsNull() {
            addCriterion("orderDetailsid is null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsidIsNotNull() {
            addCriterion("orderDetailsid is not null");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsidEqualTo(Long value) {
            addCriterion("orderDetailsid =", value, "orderdetailsid");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsidNotEqualTo(Long value) {
            addCriterion("orderDetailsid <>", value, "orderdetailsid");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsidGreaterThan(Long value) {
            addCriterion("orderDetailsid >", value, "orderdetailsid");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsidGreaterThanOrEqualTo(Long value) {
            addCriterion("orderDetailsid >=", value, "orderdetailsid");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsidLessThan(Long value) {
            addCriterion("orderDetailsid <", value, "orderdetailsid");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsidLessThanOrEqualTo(Long value) {
            addCriterion("orderDetailsid <=", value, "orderdetailsid");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsidIn(List<Long> values) {
            addCriterion("orderDetailsid in", values, "orderdetailsid");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsidNotIn(List<Long> values) {
            addCriterion("orderDetailsid not in", values, "orderdetailsid");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsidBetween(Long value1, Long value2) {
            addCriterion("orderDetailsid between", value1, value2, "orderdetailsid");
            return (Criteria) this;
        }

        public Criteria andOrderdetailsidNotBetween(Long value1, Long value2) {
            addCriterion("orderDetailsid not between", value1, value2, "orderdetailsid");
            return (Criteria) this;
        }

        public Criteria andCountIsNull() {
            addCriterion("count is null");
            return (Criteria) this;
        }

        public Criteria andCountIsNotNull() {
            addCriterion("count is not null");
            return (Criteria) this;
        }

        public Criteria andCountEqualTo(Integer value) {
            addCriterion("count =", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotEqualTo(Integer value) {
            addCriterion("count <>", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountGreaterThan(Integer value) {
            addCriterion("count >", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("count >=", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountLessThan(Integer value) {
            addCriterion("count <", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountLessThanOrEqualTo(Integer value) {
            addCriterion("count <=", value, "count");
            return (Criteria) this;
        }

        public Criteria andCountIn(List<Integer> values) {
            addCriterion("count in", values, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotIn(List<Integer> values) {
            addCriterion("count not in", values, "count");
            return (Criteria) this;
        }

        public Criteria andCountBetween(Integer value1, Integer value2) {
            addCriterion("count between", value1, value2, "count");
            return (Criteria) this;
        }

        public Criteria andCountNotBetween(Integer value1, Integer value2) {
            addCriterion("count not between", value1, value2, "count");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(Double value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(Double value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(Double value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(Double value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(Double value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(Double value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<Double> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<Double> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(Double value1, Double value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(Double value1, Double value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andTotalpriceIsNull() {
            addCriterion("totalprice is null");
            return (Criteria) this;
        }

        public Criteria andTotalpriceIsNotNull() {
            addCriterion("totalprice is not null");
            return (Criteria) this;
        }

        public Criteria andTotalpriceEqualTo(Double value) {
            addCriterion("totalprice =", value, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceNotEqualTo(Double value) {
            addCriterion("totalprice <>", value, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceGreaterThan(Double value) {
            addCriterion("totalprice >", value, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceGreaterThanOrEqualTo(Double value) {
            addCriterion("totalprice >=", value, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceLessThan(Double value) {
            addCriterion("totalprice <", value, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceLessThanOrEqualTo(Double value) {
            addCriterion("totalprice <=", value, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceIn(List<Double> values) {
            addCriterion("totalprice in", values, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceNotIn(List<Double> values) {
            addCriterion("totalprice not in", values, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceBetween(Double value1, Double value2) {
            addCriterion("totalprice between", value1, value2, "totalprice");
            return (Criteria) this;
        }

        public Criteria andTotalpriceNotBetween(Double value1, Double value2) {
            addCriterion("totalprice not between", value1, value2, "totalprice");
            return (Criteria) this;
        }

        public Criteria andFreightIsNull() {
            addCriterion("freight is null");
            return (Criteria) this;
        }

        public Criteria andFreightIsNotNull() {
            addCriterion("freight is not null");
            return (Criteria) this;
        }

        public Criteria andFreightEqualTo(Double value) {
            addCriterion("freight =", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightNotEqualTo(Double value) {
            addCriterion("freight <>", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightGreaterThan(Double value) {
            addCriterion("freight >", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightGreaterThanOrEqualTo(Double value) {
            addCriterion("freight >=", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightLessThan(Double value) {
            addCriterion("freight <", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightLessThanOrEqualTo(Double value) {
            addCriterion("freight <=", value, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightIn(List<Double> values) {
            addCriterion("freight in", values, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightNotIn(List<Double> values) {
            addCriterion("freight not in", values, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightBetween(Double value1, Double value2) {
            addCriterion("freight between", value1, value2, "freight");
            return (Criteria) this;
        }

        public Criteria andFreightNotBetween(Double value1, Double value2) {
            addCriterion("freight not between", value1, value2, "freight");
            return (Criteria) this;
        }

        public Criteria andIscouponIsNull() {
            addCriterion("isCoupon is null");
            return (Criteria) this;
        }

        public Criteria andIscouponIsNotNull() {
            addCriterion("isCoupon is not null");
            return (Criteria) this;
        }

        public Criteria andIscouponEqualTo(Integer value) {
            addCriterion("isCoupon =", value, "iscoupon");
            return (Criteria) this;
        }

        public Criteria andIscouponNotEqualTo(Integer value) {
            addCriterion("isCoupon <>", value, "iscoupon");
            return (Criteria) this;
        }

        public Criteria andIscouponGreaterThan(Integer value) {
            addCriterion("isCoupon >", value, "iscoupon");
            return (Criteria) this;
        }

        public Criteria andIscouponGreaterThanOrEqualTo(Integer value) {
            addCriterion("isCoupon >=", value, "iscoupon");
            return (Criteria) this;
        }

        public Criteria andIscouponLessThan(Integer value) {
            addCriterion("isCoupon <", value, "iscoupon");
            return (Criteria) this;
        }

        public Criteria andIscouponLessThanOrEqualTo(Integer value) {
            addCriterion("isCoupon <=", value, "iscoupon");
            return (Criteria) this;
        }

        public Criteria andIscouponIn(List<Integer> values) {
            addCriterion("isCoupon in", values, "iscoupon");
            return (Criteria) this;
        }

        public Criteria andIscouponNotIn(List<Integer> values) {
            addCriterion("isCoupon not in", values, "iscoupon");
            return (Criteria) this;
        }

        public Criteria andIscouponBetween(Integer value1, Integer value2) {
            addCriterion("isCoupon between", value1, value2, "iscoupon");
            return (Criteria) this;
        }

        public Criteria andIscouponNotBetween(Integer value1, Integer value2) {
            addCriterion("isCoupon not between", value1, value2, "iscoupon");
            return (Criteria) this;
        }

        public Criteria andColorIsNull() {
            addCriterion("color is null");
            return (Criteria) this;
        }

        public Criteria andColorIsNotNull() {
            addCriterion("color is not null");
            return (Criteria) this;
        }

        public Criteria andColorEqualTo(String value) {
            addCriterion("color =", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorNotEqualTo(String value) {
            addCriterion("color <>", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorGreaterThan(String value) {
            addCriterion("color >", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorGreaterThanOrEqualTo(String value) {
            addCriterion("color >=", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorLessThan(String value) {
            addCriterion("color <", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorLessThanOrEqualTo(String value) {
            addCriterion("color <=", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorLike(String value) {
            addCriterion("color like", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorNotLike(String value) {
            addCriterion("color not like", value, "color");
            return (Criteria) this;
        }

        public Criteria andColorIn(List<String> values) {
            addCriterion("color in", values, "color");
            return (Criteria) this;
        }

        public Criteria andColorNotIn(List<String> values) {
            addCriterion("color not in", values, "color");
            return (Criteria) this;
        }

        public Criteria andColorBetween(String value1, String value2) {
            addCriterion("color between", value1, value2, "color");
            return (Criteria) this;
        }

        public Criteria andColorNotBetween(String value1, String value2) {
            addCriterion("color not between", value1, value2, "color");
            return (Criteria) this;
        }

        public Criteria andSizeIsNull() {
            addCriterion("size is null");
            return (Criteria) this;
        }

        public Criteria andSizeIsNotNull() {
            addCriterion("size is not null");
            return (Criteria) this;
        }

        public Criteria andSizeEqualTo(String value) {
            addCriterion("size =", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeNotEqualTo(String value) {
            addCriterion("size <>", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeGreaterThan(String value) {
            addCriterion("size >", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeGreaterThanOrEqualTo(String value) {
            addCriterion("size >=", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeLessThan(String value) {
            addCriterion("size <", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeLessThanOrEqualTo(String value) {
            addCriterion("size <=", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeLike(String value) {
            addCriterion("size like", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeNotLike(String value) {
            addCriterion("size not like", value, "size");
            return (Criteria) this;
        }

        public Criteria andSizeIn(List<String> values) {
            addCriterion("size in", values, "size");
            return (Criteria) this;
        }

        public Criteria andSizeNotIn(List<String> values) {
            addCriterion("size not in", values, "size");
            return (Criteria) this;
        }

        public Criteria andSizeBetween(String value1, String value2) {
            addCriterion("size between", value1, value2, "size");
            return (Criteria) this;
        }

        public Criteria andSizeNotBetween(String value1, String value2) {
            addCriterion("size not between", value1, value2, "size");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andScare1IsNull() {
            addCriterion("scare1 is null");
            return (Criteria) this;
        }

        public Criteria andScare1IsNotNull() {
            addCriterion("scare1 is not null");
            return (Criteria) this;
        }

        public Criteria andScare1EqualTo(String value) {
            addCriterion("scare1 =", value, "scare1");
            return (Criteria) this;
        }

        public Criteria andScare1NotEqualTo(String value) {
            addCriterion("scare1 <>", value, "scare1");
            return (Criteria) this;
        }

        public Criteria andScare1GreaterThan(String value) {
            addCriterion("scare1 >", value, "scare1");
            return (Criteria) this;
        }

        public Criteria andScare1GreaterThanOrEqualTo(String value) {
            addCriterion("scare1 >=", value, "scare1");
            return (Criteria) this;
        }

        public Criteria andScare1LessThan(String value) {
            addCriterion("scare1 <", value, "scare1");
            return (Criteria) this;
        }

        public Criteria andScare1LessThanOrEqualTo(String value) {
            addCriterion("scare1 <=", value, "scare1");
            return (Criteria) this;
        }

        public Criteria andScare1Like(String value) {
            addCriterion("scare1 like", value, "scare1");
            return (Criteria) this;
        }

        public Criteria andScare1NotLike(String value) {
            addCriterion("scare1 not like", value, "scare1");
            return (Criteria) this;
        }

        public Criteria andScare1In(List<String> values) {
            addCriterion("scare1 in", values, "scare1");
            return (Criteria) this;
        }

        public Criteria andScare1NotIn(List<String> values) {
            addCriterion("scare1 not in", values, "scare1");
            return (Criteria) this;
        }

        public Criteria andScare1Between(String value1, String value2) {
            addCriterion("scare1 between", value1, value2, "scare1");
            return (Criteria) this;
        }

        public Criteria andScare1NotBetween(String value1, String value2) {
            addCriterion("scare1 not between", value1, value2, "scare1");
            return (Criteria) this;
        }

        public Criteria andScare2IsNull() {
            addCriterion("scare2 is null");
            return (Criteria) this;
        }

        public Criteria andScare2IsNotNull() {
            addCriterion("scare2 is not null");
            return (Criteria) this;
        }

        public Criteria andScare2EqualTo(String value) {
            addCriterion("scare2 =", value, "scare2");
            return (Criteria) this;
        }

        public Criteria andScare2NotEqualTo(String value) {
            addCriterion("scare2 <>", value, "scare2");
            return (Criteria) this;
        }

        public Criteria andScare2GreaterThan(String value) {
            addCriterion("scare2 >", value, "scare2");
            return (Criteria) this;
        }

        public Criteria andScare2GreaterThanOrEqualTo(String value) {
            addCriterion("scare2 >=", value, "scare2");
            return (Criteria) this;
        }

        public Criteria andScare2LessThan(String value) {
            addCriterion("scare2 <", value, "scare2");
            return (Criteria) this;
        }

        public Criteria andScare2LessThanOrEqualTo(String value) {
            addCriterion("scare2 <=", value, "scare2");
            return (Criteria) this;
        }

        public Criteria andScare2Like(String value) {
            addCriterion("scare2 like", value, "scare2");
            return (Criteria) this;
        }

        public Criteria andScare2NotLike(String value) {
            addCriterion("scare2 not like", value, "scare2");
            return (Criteria) this;
        }

        public Criteria andScare2In(List<String> values) {
            addCriterion("scare2 in", values, "scare2");
            return (Criteria) this;
        }

        public Criteria andScare2NotIn(List<String> values) {
            addCriterion("scare2 not in", values, "scare2");
            return (Criteria) this;
        }

        public Criteria andScare2Between(String value1, String value2) {
            addCriterion("scare2 between", value1, value2, "scare2");
            return (Criteria) this;
        }

        public Criteria andScare2NotBetween(String value1, String value2) {
            addCriterion("scare2 not between", value1, value2, "scare2");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}